package com.sptpc.demo.mapper;

import com.sptpc.demo.model.Drink;
import com.sptpc.demo.vo.DrinkVo;
import com.sptpc.demo.vo.DrinkWithCategoryVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface DrinkMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Drink record);

    int insertSelective(Drink record);

    Drink selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Drink record);

    int updateByPrimaryKey(Drink record);

    List<Drink> selectAll();

    List<DrinkVo> selectAllWithCategory();

    List<DrinkWithCategoryVo> selectAllWithCategory2();


}